package org.appbase.core.service;

import org.appbase.core.model.security.User;
import org.springframework.data.domain.Page;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

/**
 * Created by Pablito on 16/01/14.
 */
public interface UserService {

    UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;

    Page<User> getUserPage(int pageNumber, int pageSize);
}
